<?php

require_once 'Nine/Model.php';
class Models_ExerciseLib extends Nine_Model
{ 
    
    protected $_primary = 'exercise_lib_id';
   
    public function __construct($config = array())
    {
        $this->_name = $this->_prefix . 'exercise_lib';
        return parent::__construct($config); 
    }

    /**
     * Get all product with conditions
     * 
     * @param $condition
     * @param $order
     * @param $count
     * @param $offset
     */
   
    public function getExercise_LibById( $id ) 
    {
        $select = $this->select()
                ->where('exercise_lib_id=?',$id);
        
        return @reset($this->fetchAll($select)->toArray());
    }
   
    
    
      
    
    
}